home *** CD-ROM | disk | FTP | other *** search
- on defbuggy
- global ogre, caranim, mouthindex, temp, phrases
- set phrases to [:]
- set phrases to ["wrong1": "oewrimbrs lokaesin", "wrong2": "soorrrywwtookdarrongpatt", "wrong3": "thisisthecorrectpath", "narr1": "hiiii helpmefindmywaytothebox", "narr2": "thesignshowsthepath thatwillleadthere", "narr3": " hiiliithhatpatt andiwilldriivtothebox clickonthenumbers", "narr4": "tomoveahead clickonthemagaintomovbak", "narr5": "lookatthesintocheckthepath", "correct1.1": "thanksforyourhelp", "correct1.2": "yoursmart", "correct1.4": "youdidfineyoufollowedthesign", "correct1.5": "yaaaaaayoufollowedthepath yourgoodatmath", "bs5": "youdidfine ******* youfollowedthesigns", "bs6": "youdidfine ******* youfollowedthesigns", "bs1": " ### iilovvgoinbugggyyy", "bs2": " ## # trsnoooopplasslikkhommmm ", "bs3": " ## # taatwasafunnnridd ", "bs4": " ## #### # hey#yourreallygoodatthis thanksfortehelp ", "bs7": " yoooososmart", "again": " herweegoagain.", "#1": "onn", "#2": "to", "#3": "tree", "#4": "for", "#5": "fiv", "#6": "six", "#7": "seven", "#8": "ate", "#9": "niin", "#10": "tan"]
- set mouthindex to ["#": "#", "*": "*", " ": "-", "a": "a", "b": "-", "c": "c", "d": "d", "e": "e", "f": "f", "g": "g", "h": "k", "i": "i", "j": "g", "k": "k", "l": "l", "m": "-", "n": "d", "o": "o", "p": "-", "q": "k", "r": "r", "s": "t", "t": "t", "u": "o", "v": "f", "w": "k", "x": "t", "y": "e", "z": "t"]
- set temp to [:]
- set yyy to 1
- repeat with xxx = 1 to count(mouthindex)
- set dingus to the number of cast (yyy & getAt(mouthindex, xxx))
- addProp(temp, getPropAt(mouthindex, xxx), dingus)
- end repeat
- set caranim to [#body: [#rest: [1, "bod1"], #right: [4, "bod21"], #left: [4, "bod31"], #back: [4, "bod41"]], #lips: temp]
- set saytext to "Youdidfine ******* youfollowedthesigns"
- addProp(caranim, #text, saytext)
- addProp(caranim, #sound, "bs6")
- addProp(caranim, #tempo, 5)
- set ogre to birth(script "buggyhead", 25, 26, caranim)
- put the puppet of sprite 26
- end
-
- on setscript soundname
- global ogre, phrases
- set the bugsound of ogre to soundname
- set the bugtext of ogre to getaProp(phrases, soundname)
- end
-
- on sactivate snew, stuff
- puppetSprite(snew, 1)
- if listp(stuff) then
- set the castNum of sprite snew to getAt(stuff, 1)
- set the locH of sprite snew to getAt(stuff, 2)
- set the locV of sprite snew to getAt(stuff, 3)
- set the ink of sprite snew to getAt(stuff, 4)
- set the type of sprite snew to getAt(stuff, 5)
- set the stretch of sprite snew to getAt(stuff, 6)
- set the foreColor of sprite snew to getAt(stuff, 7)
- set the backColor of sprite snew to getAt(stuff, 8)
- end if
- end
-
- on sinfo sold
- set stemp to []
- add(stemp, the castNum of sprite sold)
- add(stemp, the locH of sprite sold)
- add(stemp, the locV of sprite sold)
- add(stemp, the ink of sprite sold)
- add(stemp, the type of sprite sold)
- add(stemp, the stretch of sprite sold)
- add(stemp, the foreColor of sprite sold)
- add(stemp, the backColor of sprite sold)
- return stemp
- put stemp
- end
-